package net.zjitc.controller;

import net.zjitc.pojo.CategorySecond;
import net.zjitc.pojo.Order;
import net.zjitc.pojo.Product;
import net.zjitc.service.CategorySecondService;
import net.zjitc.service.OrderService;
import net.zjitc.service.ProductService;
import net.zjitc.service.impl.CategorySecondServiceImpl;
import net.zjitc.service.impl.OrderServiceImpl;
import net.zjitc.service.impl.ProductServiceImpl;
import net.zjitc.utils.PageBean;
import net.zjitc.utils.dispacher.URLMapping;

import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;

import java.io.File;
import java.io.InputStream;
import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by Administrator on 2017/11/22.
 */
public class AdminOrder {
    OrderService orderService = new OrderServiceImpl();
    //显示列表
    @URLMapping(url = "/AdminOrderFindALL")
    public String findAll(HttpServletRequest request, HttpServletResponse response){
        List<Order> orderList = orderService.list();
        request.setAttribute("orderList", orderList);

        return "/admin/order/order.jsp" ;
    }

}
